﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web;
using System.Web.UI;
using System.Text;
using He.Common;



namespace He.Web.api
{
    /// <summary>
    /// Sate
    /// </summary>
    [RoutePrefix("api/sate")]
    public class SateController : ApiController
    {

        public Model.webset siteConfig;
        private static Model.webset _webset;
        public string webTitle;

        /// <summary>
        /// 网站配置
        /// </summary>
        public static Model.webset webset
        {
            set
            {
                _webset = value;
            }
            get
            {
                return new BLL.webset().GetWebset();
            }
        }

        /// <summary>
        /// 测试方法
        /// </summary>
        /// <param name="lang"></param>
        /// <returns></returns>
        [HttpGet]
        public Model.site_info GetSiteInfo(string lang = "cn")
        {
            return new BLL.site_info().GetModelByLang(lang);
        }
    }
}
